package org.azmat.mybatis.SQL.Service;

import jakarta.transaction.Transactional;
import org.azmat.mybatis.SQL.Entity.Book;

import java.util.List;

public interface BookService {
    List<Book> selectAllBooks();

    Book selectByIdBook(int id);

    @Transactional
    void insertBook(Book book);

    @Transactional
    void updateBook(Book book);

    @Transactional
    void deleteBook(int id);

    List<Book> searchBooks(Book book);

    @Transactional
    void deleteBooks(int[] id);
}
